<?php 
	require_once('config.php'); 
	require_once('functions.php');
	dbconnect();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Welcome</title>
<link rel="stylesheet" type="text/css" href="../../../Users/Adam/Downloads/style.css" />
</head>

<body>
	
		<div class="auto-style10">
			<h2 class="auto-style4">Welcome, <strong><em>User!</em></strong></h2>
			<p class="auto-style2"><strong>Jobs</strong></p>
			<p class="auto-style4">
			<a href="Profile.html"><span class="auto-style3">Profile</span></a>
			|
			<a href="Documents.html"><span class="auto-style3">Documents</span></a>
			|
			<a href="#"><span class="auto-style3">Jobs</span></a> 
		
		<br><br>
		</p>
			<table align="center">
				<tr>
					<td width="250">
					<form action="jobresultspagetest.php" method="post">
						<select name="Type">
							<!-- The $_POST value will be $_POST['JobType'] for the filter handling below. -->
							<option value="0">Job Industry</option>
							<?php
								echo get_dropdown_options("wms_types","type_name");
							?>
						</select><br />
						<select name="Duration">
							<option value="0">Job Duration</option>
							<option value="Perm">Permanent</option>
							<option value="Temp">Temporary</option>
						</select><br />
						<select name="City">
							<!-- The $_POST value will be $_POST['JobType'] for the filter handling below. -->
							<option value="0">Job City</option>
							<?php
								echo get_unique_dropdown_options("wms_job","job_city");
							?>
						</select><br />
						<select name="State">
							<!-- The $_POST value will be $_POST['JobType'] for the filter handling below. -->
							<option value="0">Job State</option>
							<?php
								echo get_unique_dropdown_options("wms_job","job_state");
							?>
						</select><br />
						<button name="Abutton1">Show Filtered Jobs</button>
					</form>
					</td>
					<td width="250">
					<form action="jobresultspagetest.php" method="post">
						<input type="hidden" name="Duration" value="0" />
						<input type="hidden" name="City" value="0" />
						<input type="hidden" name="State" value="0" />
						<input type="hidden" name="Type" value="0" />
						<button name="Abutton2">Display all Jobs</button>
					</form>
					</td>
				</tr>
			</table>
			
		</div>
	</form>

</body>

</html>